<ion-modal-view>
  <ion-header-bar class="bar bar-royal">
    <h1 class="title">采购入库</h1>
    <div class="buttons">
      <button class="button button-icon ion-ios-close-empty" ng-click="inventoryInModal.hide();"></button>
    </div>
    </ion-header-bar>

    <ion-content class="wrap-light2 inventory-in">
    	<form name="inventoryInForm" ng-submit="inventoryIn();" novalidate>
			<ion-list>
				<ion-item class="item item-divider margin-top-large">
				    采购清单
				</ion-item>

				<ion-item class="product-property margin-bottom-large" ng-repeat="product in detail.list">
					<h2>{{product.properties.brand.value + product.properties.model.value}}</h2>
					<div class="prop-list item-borderless">
						<p ng-repeat="property in product.properties" class="prop-item" ng-if="property.name!='品牌' && property.name!='型号'">
							<span class="prop-label">{{property.name}}:</span>
							<span class="prop-value">{{property.value}}</span>
						</p>
					</div>
					<div class="product-check item item-button-right">
				    	<span>已扫描 <span class="assertive">{{product.inventory_check}}</span> 件 / 共 <span class="assertive">{{product.count}}</span> 件</span>
				    	<button type="button" class="button button-col icon-left ion-ios-barcode-outline" ng-click="scanBarcode()"> 扫码</button>
					</div>

				    <textarea rows="2" ng-model="newSupplier.remark" placeholder="备注"></textarea>
				</ion-item>

				

		        <button class="button button-block button-balanced" type="submit">保存</button>
			</ion-list>
	  	</form>
	</ion-content>
</ion-modal-view>